package com.cq.service;

import com.cq.pojo.Admin;
import com.cq.pojo.Role;

import java.util.List;

/**
 * @Author: 悠久的苍穹
 * @Date: 2021/1/14 15:44
 * @Description: 角色服务层
 * @Version: 1.0
 */
public interface RoleService {
    Role findRoleByAdminId(Integer adminId);

    List<Role> getRoleList();

    int addAdminRole(Integer adminId, Integer roleId);

    int updateAdminRole(Integer adminId, Integer roleId);

    void deleteRoleById(int id);

    Role findRoleById(int id);

    int updateRole(Role role);

    int addRole(Role role);

    void deleteRole(Integer id2);
}
